import { CreateOpsWebApp } from '@/utils/fetch';

const request = CreateOpsWebApp();

export const getListApi = async (params) => {
  return request.post('/personManage/getList', params);
};

export const updatePwdApi = async (params) => {
  return request.post('/personManage/updatePwd', params);
};

export const deletePersonApi = async (params) => {
  return request.post('/personManage/deletePerson', params);
};

export const addPersonApi = async (params) => {
  return request.post('/personManage/addPerson', params);
};

export const getHolidayApi = async () => {
  return request.get('/personManage/getHoliday');
};

export const setHolidayApi = async (params) => {
  return request.post('/personManage/setHoliday', params);
};

export default {};
